import { createStore, combineReducers, applyMiddleware } from "redux"
import thunk from "redux-thunk"
import { composeWithDevTools } from "redux-devtools-extension"
import LoginReducer from "./modules/login"
import Register from "./modules/register"
import Home from "./modules/Home"
import Cate from "./modules/cate"
import Detail from "./modules/detail"
import Shop from "./modules/shop"
import Mine from "./modules/Mine"

const reducer = combineReducers({
    login:LoginReducer,
    Register,
    Home,
    Cate,
    Detail,
    Shop,
    Mine
})

const store = createStore(reducer,composeWithDevTools(applyMiddleware(thunk)))

export default store;